How to use the error correction utility

An analysis based on a dataset of sources for which the available observations per source were randomly split in two sets thus leading to the generation of two mean spectra for each object, has shown that errors on synthetic photometry are somewhat underestimated.

This same dataset has been used to compute empirical corrections to the uncertainties (see Montegriffo et al. 2022). These corrections are available in GaiaXPy and can be applied to a set of synthethic photometry.

Information about the units of the variables used in this tutorial can be found here.

Basic usage

The error correction can be applied over a synthetic photometry DataFrame which can be generated using the generator tool.

A photometric system is required to generate synthetic photometry.

We can see which systems are available.

To generate synthetic photometry:

We can now apply the correction over this data:

Due to the fact that the error corrections are computed from the Gaia photometry, if the system Gaia_DR3_Vega is not present in the input photometry, an error will be raised. We need to pass a list that contains this system and recompute the photometry.

If the photometric systems are not passed as an argument, the program will infer them from the data:

We can verify that both outputs are equivalent:

Advanced usage

Additional arguments can be passed to the function.

These are:

  1. output_path
  2. output_file
  3. output_format
  4. save_file

Three parameters: output_path, output_file, and output_format define the entire path of the resulting file.

The default output path is the current path. If the given output path does not exist, it will be created.

The default output file name is 'output_spectra'.

The default output format is the format of the input file (i.e. if the input file is a 'fits', then the output file will be a FITS file by default.), or CSV in any other case (DataFrame, ADQL query or list).

NOTE: If a file with the same path and name already exists, it will be AUTOMATICALLY OVERWRITTEN.

The additional parameter save_file is a boolean that tells the program whether to save the results or not. If 'output_file' is given but 'save_file' is set to False, a warning will be raised.